#include<iostream>
using namespace std;

int main()
{
	string s;
	int capacity = s.capacity();

	cout << "The default capacity " << capacity << endl;
	int n = 0;
	while (n <= 100)
	{
		//尾插字符
		s += 'a';
		if (capacity != s.capacity())
		{
			capacity = s.capacity();
			cout << "The new capacity " << capacity << endl;
		}

		n++;
	}

	return 0;
}
